package com.foxit.pdf.dao;

public class PDF2PDF {
	public static String dllPath = "";
	public static native long FP2PNewProcessor();
	public static native void FP2PCloseProcessor(long Proccessor);
	public static native int FP2PStartExtract(long Proccessor,byte[] file, byte[] pwd);
	
	public static native int FP2PCountPage(long Proccessor);
	public static native int FP2PCountParagraph(long Proccessor, int iPage);
	public static native long FP2PGetParagraphContent(long Proccessor, int iPage, int iParagraph);
	public static native String FP2PGetContent(long content);
	public static native void FP2PFreeContent(long content);
	public static native void FP2PAddParagraph(long Proccessor, int iPage, int iParagraph, byte[] content);
	public static native int FP2PSaveFile(long Proccessor,byte[] file);
	
	public static native long FP2PCreateModuleMgr();
	public static native void FP2PDestroyModuleMgr(long mgr);
	
	
	public static native boolean FP2PIsAllLineIsIndepend(long Proccessor, int iPage, int iParagraph);
	public static native int FP2PCountIndependLineInParagraph(long Proccessor, int iPage, int iParagraph);
	public static native long FP2PGetIndependLineContent(long Proccessor, int iPage, int iParagraph,int iLine);
	public static native void FP2PAddIndependLine(long Proccessor, int iPage, int iParagraph,int iLine,byte[] content);
	public static native void FP2PInitDestInfo(long Proccessor,int Language);
}
